You can opt out of the beta program at any time, but doing so when there is no stable version means a wipe and reinstall.
Once the stable version is released, you can stay on it and opt out of future betas. Android 15 beta will require a new beta program. Betas for minor upgrades can be opted out.