And can I generate keys securely first and then use a closed-source wallet?
With importing your private keys (or your seed phrase) into a different software, you open a new attack vector for hackers and you decrease your security.
That's even worse, if one of the wallet is close-source.
When you open a close-source wallet, you don't really know how it's working and what's happening behind the scene. You don't know whether keys are sent to their servers or not.