I think offline wallet are safer than any online wallet. Now a day, hackers or scams are roaming a lot to break your security. So i believe offline wallets are unbreakable.
Is there a posibility that a btc wallet can hack?
This depends.
A server of an
online wallet provider can be
hacked. A
desktop wallet itself can not be
hacked.
But what usually happens is that your computer gets compromised. And once an attacker has control over your computer, he can do whatever you can.
So if you are opening a wallet (desktop- or online-) on an infected PC and enter the password to unlock it, and you are able to sign transactions the attacker also is able to create transactions (most probably way faster than you can react).
If you are in possession of a
hardware wallet on the other hand, it always requires you to physically confirm the transaction on the hardware device itself.
This eliminates most attack vectors (if you dou conscientious check the address you are sending to).
Generally, every wallet can be 'compromised'. Some relatively easily and some only with the exploitation of several (yet) unknown vulnerabilites in a strict order which practically is not efficient to perform.
Cold storage (hardware wallet, air-gapped wallet, paper wallet) is always way safer and more secure than
hot wallets (destkop-, mobile-, online- wallets).