Can a friends with benefits turn into a relationship?

Or is it better to get to know the guy before getting into a relationship? If you have sex with a guy right away will he want a relationship if you ask for one or is it better to know him better?