Can you get o2 broadband and have bt phone line?

Yes.
It is a prerequisite that you have a BT phoneline in order to get O2 Broadband - see below