How soon Is too soon?

How soon is too soon to sleep with a guy after ending a 2 year relationship?

After a month. Is it bad to sleep with someone else?