Yes it is. Some say that dry firing the gun from double action will stress the trigger spring, but from single action there are not issues. I dry fire single and double - no issues.
Dry fire is among the best types of practice.
The very best way to do this is to put a thick rubber O-ring over the firing pin at the rear of the slide. If you get the right size O-ring it will stay in place. Then you can dry fire all you want to without fear of breaking or stressing any component. The O-ring takes all of the abuse and the pistol takes none.
I've been happy with the G-sight laser trainers for my dry fire. You get feedback on where you're hitting from the laser and the app on the phone. They're more expensive than snap caps, but personally I think the feedback is worth the extra cost. I know everyone says it doesn't hurt to dry fire on an empty chamber, and I suppose I agree with it, but it definitely won't hurt to use a minimum of snap caps in the chamber as an extra measure of protection.