Yes, simply because it can be completely disconnected from the internet when it’s not in use, making it impossible for others to gain access to it. However, a hardware wallet is much easier to lose since it’s physical, so you need to be more careful with it. It’s also worth bearing in mind that it’s more difficult to trade and access funds on the go with a hardware wallet.