Unless you indicated in your visa application that you intend to study in US. The immigration officer at the airport will put a comment in your I94 when you enter US indicating you have an intention to study. Under this condition, your status transfer from B2 to F1 might be successful.