Can I have a washer, electric dryer, oil tank, and oil burner all in the same room?
Unless you have a written local amendment disallowing it there is no reason this would be unsafe or prohibited. I have seen and worked on many, many basements that fit this exact description.

My only concern would be keeping the area clear of lint from the dryer.