It is quite common for extension modules written in c / c ++ to be integrated into Python libraries, especially when you need a lot of efficiency or use existing resources or libraries. Libraries for scientific calculation, big-data, etc. like Pandas, NumPy,
SciPy, libraries for creation of GUI (interaction with OpenGL, Qt, GTK ...), etc use this very often. The same techniques allow interaction with parts written in C of the Linux kernel, for example.
This is known as "wrapping" (wrap). There are multiple ways from simply calling functions c / c ++ from a static module or library to using compiled code in dynamic libraries ( .so and .dll ). There are different ways to integrate the code:
Another option is to compile to executable, run each process separately and communicate / control both processes using subprocess for example.
In short, it is possible to combine c ++ code with a library or application made in Python (also the opposite) and there are multiple options for it. It will depend on the characteristics of the project, libraries to use and the specific needs you have.