No, that is not necessary. Until 4 March 2024, you do not need a visa if you are entering Germany for the first time. After entering, you can stay in Germany for up to 90 days without needing a residence permit. To stay in Germany after that, you should apply for a residence permit. If you register after arriving in Germany, you can also receive government assistance.
In any case, you still have the right to apply for asylum at a later date.