Integrate Custom code on server-side?

I know it is possible to integrate custom code at client.side. Is it also possible to integrate custom-code on server-side eg. Python??

use the Page Events or Endpoint they are generated on the server side.