Did the Puritans believe in the Trinity?

Yes, the Puritans were part of the Reformed branch of Protestant Christianity, which among many beliefs, holds to the traditional Trinitarian view of God.