The law of conservation of energy is valid both, macroscopic and microscopic domain. All conserved quantities are not necessarily scalars. e.g., conservation of linear momentum and angular momentum are vectors whereas conservation of energy is scalar.