I guess that would really depend on how the relationship was, how long it lasted, and the personal feelings.
Most people say to wait, like, two weeks. That way the other person isn’t upset about the other moving on so fast.
But it’s your life, you know. Whatever seems too soon for you is too soon.