It depends on the circumstances and your relationship with your ex. If it was a toxic or unhealthy relationship, then unfollowing them could be a healthy way to distance yourself from any triggers that could cause difficulty moving on.