Really depends on your set up and environment, but from my experience, no, it is not a good idea.
First, the chickens make a mess with it, which makes your coop a mess requiring more cleaning. Spilled feed mixed with poo, at least in my area, molds. Mold is really bad for chickens as it can cause Aspergillis, a fungal infection of the air sacs.
Secondly, feed attracts rodents. Unless your coop is metal, closing the coop merely entices rodents to chew through the wood corners....yes corners, and any little nook and cranny. I picked up feed at night and placed it in the coop, with hatch closed, door locked, to avoid feed loss to rodents, who were cleaning me out...and the rodents? I now have nice rodent holes in my coop that I have to patch.
As to water, unless it is secure, and a nipple type that doesn't drip, they spill it, then it mixes with the feed to make an encrusted paste on the coop floor which is hard to clean. Then it molds.
So all told, while tempting, and sometimes necessary (broody hen with chicks), feed in the coop merely makes a mess one way or another unless you are talking a chicken building for winter where coop and enclosed run are one.
LofMc