MacOS app start up when the Mac turns on

is it possible for a macOS app created using swiftUI on Xcode to have an option, which if the Mac starts up the app will automatically starts as well?