Perhaps not in a direct sense. Genesis 11:4 clearly states the people of the world were trying to build a city so they would not spread out across the Earth, which is the direct opposite of what God commanded Adam and Eve in Genesis 1:28- multiply and fill the Earth.
This was problematic for God, because the people wanted to unite in one area and do whatever they pleased, rather than obey God's will of spreading out and tending to the whole world. We know from archaelogy and the culture of Mesopotamia that the Tower of Babel would have been a ziggurat. The goal of building it into the heavens would be to interact with the divine beings (don't know whether or not that was a pantheneon of false gods or interaction with Yahweh, the true God).
So indirectly they were trying to create an earthly kingdom to their will, so they were opposing God. I would not say this is directly the case since we can't know if they conciously tried to object God or if this was more involved in worship of false gods.