No there is no relation between sex and weight gain. But yes if you have too much sex that can lead to some weight loss. As calories burn so it leads to weight loss.