Advice – Is it okay for me to contact my best friend’s ex-husband to provide support?

My best friend recently divorced his husband and moved across the country to pursue a new job and life. I was very close with both my best friend and his husband before the separation/divorce, and was even the maid of honor at their wedding. Is it okay for me to contact my best friend’s ex husband and offer my condolences & support?