How to install fedora on a HDD and move it to another device ie laptop

I have an old HP laptop that has a locked bios and resetting the cmos does not work. I want to know if I can install fedora to the laptops hard drive when connected to another pc and then transfer it back to the laptop will it work? And if so how to do it properly. I want to install the latest fedora 35. The laptop is HP Probook 4440s intel cpu and AMD graphics.

Did you read the manuals of the bios protected security tools?