Can I register an OpenGL resource in a context for interoperability with Direct3D?

If I create a D3D binded cuda context using “cuD3D9CtxCreate”, then can I use “cuGraphicsGLRegisterBuffer()” or “cuGraphicsGLRegisterImage()” to register a OpenGL resource in the context?