No, you cannot change your main class in Destiny 2, you can only choose between 5 different subclasses, those you can change whenever you want. If you want to change your main class for example from a Titan to a Hunter, you will have to create a new character.