There is nothing wrong with it, but be careful. He can take it as wanting to get back together, even if you make it clear that you do not want to. Usually, it is difficult to remain friends with an ex, partly because your lives have probably gone in different directions since you were dating, so do not be surprised if you catch up with each other briefly and then lose touch again after a couple of weeks, or a month or so. And that is completely natural, if that happens be glad you caught up with each other and then move on.