As a medical student , he began to question religion and in 1846 became an atheist . As a medical student , he began to question religion and in 1846 became an atheist , joining the Free Congregation and supporting free love .