Can you take the lens off the camera while there is film in it?

Can you take the lens off the camera while there is film in it? i thought you could so you could put it in the case or change lenses but my Brother-in-law said not to. So Can I? Will it do anyhthing to the film?
9 answers 9