Can you tap on a starter so that the car will start?

sometimes if the starter is going bad this will work, however, if you are having trouble starting the car it not likely the starters fault