If a woman divorces her husband remarries and then divorces to remarry her exhusband is that a sin especially if her first husband is now a pastor?

Matthew 5:32 that's all I have to say!!!