Technically if your voted representative didn't get elected then indeed you didn't vote for this. But the elected person technically still represents you as an equal rights citizen. So yes, your representative can do things for which you didn't vote.
The agreement we have in a representative democracy is that even if someone who didn't vote wins, they still represent me and I accept this, as otherwise it wouldn't be much of a democracy at all :)