Magistrate (England and Wales)

In the legal system of England and Wales, there is a history of involving lay people, namely people from the local community who are not required to hold any legal qualifications, in the judicial decision-making process of the courts. They are called justices of the peace or magistrates.

Is this statement correct "is a magistrate the same as a justice of the peace"?
yes