Is it dangerous to take laxatives to lose weight?

A fellow caregiver asked...

I know a lady who told me she lost alot of weight by taking over the counter laxatives. Is this dangerous?