Is only a condom enough to avoid pregnancy?

Hi guys is it safe to rely on the condom as the only birth control method?