Beautiful things are not always good.

Literal

Beautiful things [subject-が] necessarily good [not-とは限らない].

必ずしも~ではない means 'not necessarily.' 美しいもの ('beautiful things') and 善 ('goodness') are abstract concepts. A philosophical statement separating aesthetic beauty from moral good.