Technically, yes.  However, they may turn your recipe into a muddy mess.  I don't recommend leaving the gills intact.  They are easily removed with a spoon but be careful not to tear the mushroom while trying to scrape out the gills.