Yes, you can block both calls and text messages from a specific number on your iPhone using the same method described in this guide.