Is fully indoor autonomous navigation flight possible?

Hello everyone, im actually really new to these autonomous drones and i am currently working on a project that requires my drone to fly a flight path that i can program, for example fly forward 2m, upwards 5m, forward 2m then downwards 5m, and the drone needs to be able to do this fully autonomously. I am unsure if the px4flow optical flow camera combined with the pixhawk flight controller is capable of doing this and whether there is a program, interface or software that could make it happen. So i am asking for help on whether my application is possible before i start purchasing what i need. Thank you to whoever that will read this and hopefully i get good news!

Best regards

If the answer is still relevant, here is the link -
Fully autonomous flight indoor based on ultrasonic positioning system.

If you need more info - please contact me directly.