Yes, non-custodial wallets can be hacked.
Software wallets are susceptible to common attacks such as phishing scams like any other internet-connected service.
No user's hardware wallet has ever been successfully hacked, but research has proven that there have been hackable flaws in the designs of some earlier iterations of hardware wallets.