That should be ok. To answer your earlier question though, unless your MacBook Pro is very old, you can install a brand new and unformatted internal hard disk drive and use macOS Recovery to format it. The ability to do that is built into the Mac's firmware—nothing needs to be on the internal disk at all.
After it is formatted and macOS is installed on it, you can then populate its content from the Time Machine backup.
If you format the new drive in an external enclosure first, and then install it within the MBP that should also work. It's just not necessary.