Nope. In D&D, you get your shield bonus to AC even if you are held, paralyzed, asleep, etc.
Not saying it's realistic, merely that is how D&D handles it. There are odder things in D&D... combat is just handled abstractly, is all.
Again, while denying them the bonus might seem 'realistic', it...