Yeah, he was a terrible marksman - I don't think he actually hit anything in the movies. The only thing he managed to do was figure out the Falcon was attached to the hull - and even then he might have just gotten lucky and just saw it. The Empire did the actual heavy lifting of capturing them on Cloud City.