The secure way to proceed is:
Buy Bitcoin from Exchange
Download secure wallet app like Blue Wallet yo your phone
Take note of your new wallet’s 24-word recovery seed and keep it somewhere secure where it won’t be damaged or lost.
Send your BTC from the Exchange to your Blue Wallet’s receiving address
Learn about, and then consider a hardware wallet like ColdCard.
DO NOT use online tools to create public/private keys.