You can get sick from the chemicals in the paint. This is especially dangerous for the elderly, pets, children, and pregnant women.
Always be sure to sleep outside of the painted room to avoid potential health risks.