All asked and answered dozens of times...
and search for "static ip"
(Searching with the built-in forum search will not work with 3 letter or shorter terms, such as vpn or ip.)
No, you do not have to have a static IP. Yes, VPN can be a good solution for a number of reasons.
See also the various Wiki articles here:
One of the forum moderators
AC 26 USA and earlier • macOS Ventura 13.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB