Boyfriend question?

Can you break up by hanging out and having sex one more time as a goodbye?