You may not receive Social Security benefits on your ex-spouse’s record if you remarry.

See Social Security Benefits Planner: Retirement.