You are correct. When referring to a bad person, a nasty person would say bad things about your mother, cheat during a game, or just call you *nasty* words. This is not someone that you want to be around...
It could also refer to someone that you find very unappealing (or disgusting), for example, that person on the bus or subway that has a really bad odor - so strong that makes you want to throw up - could be described as nasty.
But, to confuse the subject, I might warn my children to stop being nasty if they are being very rude.
Also, you could tell your friend "dude, that's nasty" if he won't stop burping or farting....
Hope that helps!