Yes.
As a member of the Cucurbitaceae family, bottle gourd contains toxic tetracyclic triterpenoid compounds called cucurbitacins.
It could harm the stomach and digestive system, causing ulcers and rarely multi-organ damage.
Cooking it can help break down the organic compound, hence, raw lauki is a big no no.