All of that can be used for composting yes, though I personally don't use any acidic stuff like oranges, lemons, grafefruit etc
nor do I use any type of onions or garlic.
I just cut everything up into 1cm x 1cm pieces (with a hand food grinder thingie) and then stick some in my worm farm...