https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/

This link has even more extensive ways to do it