aftermarket antena

i dont know the name of tem but they are the short black ones that go on the roof of the car.

What are they called
and are they functional?

Could i take the stock one out and use the aftermarkt one?