Running romex around switch box that is not being terminated to said switch box
Yes, you can loop around a box provided you staple like you describe. I'd suggest having the cable not touch the box since someday the box may have to be removed and keeping the cable away from the box will prevent it getting damaged.