No, this is not necessary for war refugees from Ukraine who fulfil the requirements for the issue of a residence permit under Section 24 (1) of the Residence Act for temporary protection or for a residence permit for another purpose, such as study or work.
If you register after arriving in Germany, you can also begin receiving state benefits.
Irrespective of this, you do of course still have the right to apply for asylum at a later date.