It's not "like ppl belive", it's a fact.
You can damage your skin in the sun or in a tanning bed, which *MAY* lead to skin cancer.
Personally, I see no problem with tanning in either enviroment. I think you just have to be smart about it. (ie, don't lay in either for hours on end).