Yes, but the numerical backend of the python libraries are written in lower-level languages. For example, pytorch uses a C++ backend.