Are the front and rear derailleur batteries interchangeable?

Yes. Additionally, shifters use one CR2032 coin type battery each.