Is it possible to execute python code from MavSDK on a drone?

Hi I’m a french student and I have to create a drone for my school project. So I would like to know if it’s possible to create missions that my drone will execute simply by using the MAVSDK and not something else like a Raspberry Pi ? And also can I use the MAVSDK Python API on MacOS?

Thanks for your answers