Is there a way that you can block someone's number from texting you????

Ky 8-15-17👼🏼 & 10-28-17👼🏼 Pregnant with my🌈💕
Anyone know if there's a way that I can block someone's number from texting me??