Pregnant after period ?

Is it possible to get pregnant if you have sex the day your period ended ? My cycle last 6 days and is a 30day cycle .Just curious ? I've heard it's impossible