Is it possible to integrate a WordPress website with my own Python Flask code?

Friend has simple WordPress site showcasing his company. He now wants a 10 page application form on the website, which will collect answers from clients & save all answers to Google Sheets.

I can build such a form using Python Flask (backend) + React (frontend). But is it possible to integrate this with WordPress website? Never worked with WordPress before.

For eg) buystamp.com would be base WordPress website & buystamp.com/fill_application would be my Python Flask + React. Where would I even host my code?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer