No, it doesn't work that way. " If someone is able to do something, that condition applies both to the situation and to the person. If the ice cream were there for him to take but someone had tied a bag over his head, you cannot say that he could have had ice cream - unless you make it a conditional sentence: He could have had ice cream if someone had untied him.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.