6 weeks - vomiting all day

What can i do for this sickness? I’m miserable today. I can’t keep anything down. My friend gave me some of her zofran since i wont see my doctor for another month. Will it be safe for me to take it?