In theory, yes, it can work. Be sure everyone's on the page. That you are friends first who enjoy sex with each other...you're not going to change your current status for them, etc.
Then, eventually emotions are likely to become involved on either side. (see Online Affair vs. Real Life Affair thread)
Again, it boils down to...is it worth it to you to risk?