As mentioned - you can put
anything in as long as there's not one
overwhelming constituent. With nettles and other flowering plants, best not to put them in as their seeds are ripening!
I know of one case when the things going into a bin were overwhelmingly fruit remains especially orange skins - not very good compost - needed more foliage and other things ..... lovely for wasps and fruitflies but not the right texture for worms and, also, on the acid side. Cardboard and grass clippings provide a nice basis for all compost heaps.