Do push notifications work even when browser is closed?

Yes, it works even when the browser is closed on both mobile and desktop. Even in case when your mobile device or desktop PC is powered down, once they come online, the notifications will be delivered.