No it doesnt affect your karma, just while you're polymorphed. Im not sure if you can get guarded in town though, since your red, but while you're polymorphed if you are grey, you become red, if you are blue, you become grey (not crim...just grey). Hope that helps a little.