Once your wort gets to a rolling boil, you would then add your hops, in accordance with your hop schedule. The other way you mentioned is called a "hop tea", I've never done that, so I cant comment on it. So yes, the hops and the wort get boiled together, and become great friends.