Respuesta :

Yes, it's used correctly because you are showing two opposite situations and these have to be connected by 'but'The first part is affirmative;the second is negative.
I'm Brazilian but you aren't (Contrast)
I'm Brazilian and so are you. (Similar)