If you are in a relationship now, you might want to discuss it with your current partner first. You should be honest with your current partner about contacting exes.
If you are still single, then there's no harm, but it might be a sign that you want to get back together.