Answer: Yes, it is possible for each samples to contain 1 mole of a substance because the number of moles are not dependent on the mass or the volume.
Explanation:
The formula for the number of moles is given by:

As, the masses of 2 samples are different, so the number of moles will be dependent only on the molar masses of the samples.
Volume has no effect on the number of moles.