No, onions cannot remove freckles.
Freckles are caused by a concentration of melanin, a pigment that gives skin its color. While onions have been used in folk remedies for various skin conditions, there's no scientific evidence to support their effectiveness in removing freckles.
If you're concerned about freckles, consult a dermatologist. They can offer safe and effective treatments tailored to your individual needs.