You can. But if your app only checks every 5 minutes, it kind of defeats the purpose.
I don’t know, for sure, how Mastodon notifications work. But it seems like Tooot (not totally sure if it was this app or a different one) tried to make me jump through some special hoops to do the best approximation it could of true push notifications.