If you fired an anti-tank rifle straight up, could the bullet leave the Earth?

If no, are there any guns that could fire a bullet into space?
Update: Wow. People must really be passionate about this, cause most of the comments have crazy dislikes lol. even the good answers have a lot of dislikes and I don't know why. Anywho, thx for the answers everyone!
15 answers 15