This is very common, and many argumentative essays will assign a position to argue, just as they are when studying debate. That is a valuable exercise for writers: It helps expand understanding, practice empathy, and explore the viewpoints of others – all valuable things when writing characters, for example. Even if you don’t believe a position, make sure you stick to facts and evidence that support it.