The only partition which needs to be marked active is the one with your windows boot files on it. If you don't have windows, don't worry about it. And yes, as stated, Grub is installed with the Ubuntu installation.
Other factors which are important include whether another OS is already installed, what that OS is, whether you are using UEFI/GPT and which installation type option you choose. If you have UEFI, I would suggest you read the first link below, if you are using MBR, the second link.
https://help.ubuntu.com/community/UEFI
http://www.dedoimedo.com/computers/u...all-guide.html