100%, yes it is alright to do that!
You have to keep in mind a few things though. If you're a guy going to play a girl, DON'T do a high-pitched voice unless you're going for comedy (and possibly offending someone). Rather, simply soften your voice a little... and it'll work wonders.
Also, just...