Replaced the battery, now starter just clicks?

Can you take the starter out of the car and hook up 12V to it to see if the spiral gear pops out and spins when it’s not in the car?