Is it safe to buy firearm from pawn shop?

no Only if the pawn shop has a good reputation and you trust the owner. And if you know what to look for in a used gun.