Would sex help me move on?

A boy just broke my heart Monday and I still love him and I feel like the only way to get over him is having sex with another boy but then I feel like I will regret it. Any advice on how to move on from a boy?