Hi

I understand there are genders in Russian, masculine, feminine and neuter and how adjectives change their endings depending on the noun, for example, good dog becomes:
Хорошая собака

So I was wondering, would you do this when talking to a male or female? Like when talking to a man would I ask:"вы русский?" and when talking to a woman would I say "вы русская ?"

If this is the case, are there any other examples someone could post for me? Thanks a lot.