If we are praying on time so is it necessary that there should be a gap between magrabain or zoharain prayer or is it ok if we pray one after another

Gap is recommended but not necessary