You cannot have a parrot and leave windows and doors open (even if they don't fly much). All it would take was one moment of exploration or fear and bam- bird is lost. Ceiling fans are another major risk when turned on.
There is A TON to consider other than these factors...
Are you aware of the dangers of teflon/ptfe/pfoa/pfcs and the fact that these can kill birds on separate floors when heated (they hide in lots and lots of things, like pots, pans, space heaters, air fryers, drip trays, toasters, griddles, george forman grills, panini (sp?) makers, popcorn poppers, toaster ovens, curling irons, straighteners, blow dryers etc etc etc.
You cannot use standard cleaners around a bird either....so you will need to alter your cooking and cleaning habits significantly.
Fumes of any kind (even things like perfume that smell good to us) are toxic for birds. Air fresheners, candles, vaping, cigarettes, burning food, incense, glad plug-ins, fabreeze, aerosols etc are all very dangerous as well due to their extremely sensitive and efficient respiratory systems.
They need a diet consisting of more than just seeds...so you will have to do lots of fresh veg etc daily, along with pellets (although you never want to change a bird's diet abruptly or they can starve, so you would need to wean him onto better food if his current diet is bad).
They need a sleep schedule of AT LEAST 10 hours a night...
They can have ups and downs...are you prepared for potential biting and screaming issues?
If you have never had a parrot, it's easy to make major behavioral mistakes because they are so much more complicated than dogs or cats and they move in slow motion.
RESEARCH (and not on any websites that contain "pet" in the name, because these are almost always super general and written by people who have never owned parrots or are trying to sell them lol)
A parrot is a huge, life-long commitment (life-long for many anyway- depends on the type as far as life-span).
They require a ton of time and money and patience. If you can't imagine having a kid right now, I would seriously think hard about this because (while you can't stick a kid in a cage) parrots need to be a part of the family and they will test your patience like crazy.