Yes. During a motor vehicle stop, a police officer may ask you to get out of the car. You should comply with the officer's request and maintain a level of respect when dealing with them. If they pat you down to make sure you are unarmed, they are allowed to do so to protect their safety.