Register custom op in Python and load generated dynamic library from C++

Can I register custom op with python API and load generated dynamic library with C++ in custom op register