Here’s an interesting Quora thread about what you should know before booking a rock band session. I can’t improve on the excellent post by Bruce Williams, but I have a few things to add.
The challenge of recording is 10% technical and 90% psychological, especially if you’re inexperienced. You may be as cool as a cucumber onstage and then turn into a nervous wreck when the tape rolls. Your band may be great friends until the time pressure of the studio brings out unsuspected conflicts and dysfunction. Fortunately, all of this stuff can be prepared for.