Yes, Quicksilver has been depicted as both a hero and a villain in Marvel comics. His character has fluctuated between being a member of the Avengers and X-Men, as well as associating with antagonistic groups like the Brotherhood of Evil Mutants. His allegiance often depends on the storyline and the context in which he is portrayed.