Doom like first person sprites

Is there a way so I can have a sprite as my weapon and animate it so when you shoot it plays the shoot animation?