As long as you log into the app store with the same user ID you used to purchase the app you should never need to buy it again.

Also, please check out this link on how to re-download an app https://support.apple.com/en-us/HT201272