not a problem at all if you are two sensible, easy going, respectful people, and drama-free people. if not, then dont even try.
i dated a coworker for a couple years and it was never a problem, even after the breakup. i mean, there were about two months that it sucked having to see him/hear about him, but other than that... perfect.