Yes, all functions work on each light independently of the other light. It is therefore not mandatory to buy both front and rear light if you only need one of them :-)
(Brake light only works on the rear light of course)