Lets first write the masses of electron, proton, and neutrons
mass of electron =
Mass of neutron and proton, =
Now you can see that mass of neutron or proton is 10000 times the mass of the electron and we know that the nuclei of an atom comprises of neutron and proton.
To answer the question that whether the mass of atom will change or not, Yes it will be changed but it will not be significant because the mass of nuclei is around 20000 times the mass of electrons.