Unfortunately, not. You first need to apply for permission to live in the UK. This can be an application for a spouse visa, or, if you qualify under another route, for example on the basis of UK ancestry or as a person with an endorsement for a Global Talent visa, you may choose a different immigration basis. You will qualify for indefinite leave to remain after five years of residence and then you can make an application for British citizenship. If you are applying for a spouse visa you will make an initial application for entry clearance (or leave to remain if you are applying from the UK), then, after 2.5 years, an application for extension of leave to remain as a partner of a British citizen, then, after 5 years of residence, an application for indefinite leave to remain, and once ILR is granted, an application for naturalisation as a British citizen. After that you can apply for a British passport.