Once you finish the final mission you are free to do what you want. But there is a section before that where you are sort of locked into just the final mission. Don't wanna spoil anything so I can't say more than that. You do get a warning when it happens and it's pretty clear just from the story when it happens too. Side quests can be done after final mission, just not the ones relating to major characters as Brogan mentioned.