I don't think your Bitcoin wallet can be hacked as long as you don't show any of your private information related to the wallet.
Don't be overconfident. There are various ways in which a software wallet can get hacked, and that's true for non-custodial and open-source wallets as well.
The most common way to lose your funds is downloading and installing a fake wallet. Electrum, for example, is a frequent target of various attacks and scams. You have surely heard about the notifications that were shared by malicious Electrum servers in the past that requested users to download newer versions of the Electrum client. In reality, they downloaded a fake phishing app infected with malware.
Other ways involve getting infected with a clipboard hijacker that changes your address to that of the hacker. There are RATs, crypto-stealing malware, password stealers, or keyloggers. These were produced to find and copy sensitive information such as private keys, passwords, wallet files, etc.