Hello yousif87,
Thank you for reaching out to Apple Support Communities, and we'll be happy to help in any way we can. We understand you're having issues with your Silent/Ring switch being moved when taking off your case. It won't physically cause any issues, but make sure if it turns your iPhone to Silent you activate the switch again to make sure it doesn't stay that way: How to put your iPhone on vibrate, ring, or silent mode
"Turn Ring/Silent mode on or off on your iPhone
In Ring mode, you hear ringtones and alerts. In Silent mode, you don't, but your iPhone can still play sounds, like when you play music or videos.
Use Ring mode
To put your iPhone in Ring mode, move the switch so that orange isn't showing.
Use Silent mode
To put your iPhone in Silent mode, move the switch so that orange is showing."
We hope this helps.
Cheers!