Engine cleaner

I went to a self service car wash earlier and they had an option on the sprayer called engine and tire cleaner. Do you open up your hood and literally spray this on the engine and rinse it off? You can do that?