Changing surname when getting married–Foreigner and Japanese

Hello everyone. I'm planning on marrying my fiancé (Japanese national) sometime in the next three years. While talking about logistics and the marriage itself, we stumbled upon this question. As far as the law is concerned, Japanese married couples must share the same surname, yet this does not apply when one of the spouses is a foreigner. Now, say the foreigner then later becomes a Japanese citizen, must they change their surname to fit the Japanese law? I'm also asking because I am studying medicine and will have my doctor certifications under my original name, so changing my name is not ideal. If anyone has an answer, please let me know. Thank you!

皆さん、こんにちは。
今後3年以内に、日本人の婚約者と結婚する予定です。結婚の手続きや実際の結婚について話している中で、ある疑問が出てきました。

法律上、日本で結婚する夫婦は原則として同じ姓にする必要がありますが、配偶者のどちらかが外国人の場合はこの規定は適用されません。

では、もしその外国人が後に日本国籍を取得した場合、法律に従って姓を変える必要があるのでしょうか。

ちなみに、私は医療関係の勉強をしており、医師としての資格も元の名前で登録する予定なので、名前を変えるのはあまり望ましくありません。

もしご存知の方がいれば、ぜひ教えてください。
よろしくお願いします。

by la_crisis_nofiscal