Are you shooting it or using it as a club?
The answer is yes to both methods.
The HOW, on the other hand , is relative.
Precision aim is key for a quick kill, although poorly aimed bullets can kill as well, just slower, or not at all.
This is when you will need to use the rifle as a club to fend off the angry, attacking person you have just poorly shot at, and hope you are quick enough to knock the person out before you are beaten to death.