Can we run our own python code from cayeene for raspberry pi 3

I have an example here, let me know if you have any questions.