Yes, front and rear derailleurs, as well as dropper posts, use the same AXS batteries. This means that AXS batteries are interchangeable between components.
Additionally, shifters use one CR2032 coin type battery each.
For more information on our batteries: ALL ABOUT AXS BATTERIES