I wouldn't consider it unethical, but I personally do consider it somewhat improper to vote on questions/answers for reasons other than their content. And the voting behaviour of other users is a criterion quite separate from the content of any post.
(Of course, the general rule is that, with certain exceptionscertain exceptions, you are free to vote as you please.)