Yes, this is possible in principle.
However, you must still meet the entry criteria for the country in question.
The situation is constantly evolving and there may be sudden changes.
A good tip: Check with your airline to ensure that you meet the conditions for entering the country.