Or, you know, take a boat.
There are also private “ambulance” planes that carry Covid+ patients (or other people with contagious diseases or other health issues that preclude them traveling on standard commercial flights).
I believe the answer to the OP is generally “no”, although there are probably cases where you will be arrested at the border for various things.