The pill

H
If I go on the pill is it a good idea to still use a condom? Because if I'm still going to use one then why do I need the pill ?