Yes, in tiny doses, but should be avoided.
GHB (4-hydroxybutanoic acid) actually occurs naturally in our bodies, most in our central nerve system. It can also be found in wine, beef and in almost all animals.
"...is a naturally occurring substance found in the human central nervous system, as well as in wine, beef, small citrus fruits, and in
small amounts in almost all animals."
The danger is in the dose. It's really hard to determine what is a proper dose. A user dose can be from 0,5 grams to 5 grams. Negative effects can be:
- Headaches, dizziness, vomit and loss of breath control. Possibly even death.
Another issue is that the solutions you find the substance in can differ.
It is used in minor doses to combat narcolepsy. The dose I can find is about 25mg/kg, or 2.25g twice per night, 3-4 hrs between the takes. ( Source 1 - Source 2 )
"The only common medical applications for GHB today are in the
treatment of narcolepsy and more rarely alcoholism."
In short, it can be consumed safely, but the amount must be quite small to avoid too hard of an impact.
"GHB tends to cause rapid unconsciousness at doses above 3500 mg, with single doses over 7000 mg often causing life-threatening
respiratory depression, and higher doses still inducing bradycardia
and cardiac arrest. Other side-effects include convulsions (especially
when combined with stimulants), and nausea/vomiting (especially when
combined with alcohol)"