Does putting a key in a capsule mean you can hack more?

According to decodeingress.me, yes:

Can I use Capsules for key farming?

Most definitely. When you put a key into a Capsule, the portal you are hacking will not recognize it, almost guaranteeing you a key on your next hack.