Yes, this is possible in principle.
However, you must still meet the entry criteria for the country in question.
Please check this page. You must contact the relevant authorities beforehand to check existing restrictions. 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.