We investigate the effects of strong magnetic fields upon the large-scale properties of neutron and protoneutron stars. In our calculations, the neutron star matter was approximated by pure neutron matter. Using the lowest order constrained variational approach at zero and finite temperatures, and employing AV18 potential, we present the effects of strong magnetic fields on the gravitational mass, radius, and gravitational redshift of neutron and protoneutron stars. It is found that the equation of state for a neutron star becomes stiffer with an increase of magnetic field and temperature. This leads to larger values of the maximum mass and radius for the neutron stars.