Nothing wrong with it. Personally, I usually save those for my driver as the range balls are not always in great shape.
I cannot tell you how many balls I have pulled my bag and hit on the range. This was a common practice when I was younger. Though typically they were balls that I had played for a few rounds, maybe a scuff from a cart parts, or back when square grooves were a thing, the ball had chew marks on it. Or I had run out of range balls and I needed to hit more.
For those worried about germs....that's funny. All the ranges I go to wash the balls first. Not to mention, the balls are sitting out on the range getting exposed to UV light. I dont know, I grew up during a time in which my parents made us go outside and they locked the doors. We drank water from the garden hose, played in the mud, creeks, swam in the lake, ect. Mom would walk out and set down a plate full of sandwiches, chips, ect and turn around and go back inside and shut the door. I don't remember washing hands too often. I have never even thought about germs on a range ball.....😂