That piece of poly doesn't really meet the IRC definition of a roof. If it did, it would probably be a legal dry location. Since it's just a flimsy piece of plastic that will flap in the breeze, it doesn't really fly in my mind. I've seen it done in my area many, many times in that manner.