no. it just gets you cold feet. you can walk around with bare feet all you want without any fear of illness. your grandmother (or mother) is not correct.
does walking on a cold bare floor with hot feet get you sick?