yes. they will forget HMs. thats why you need to be careful when you put a Pokemon in the daycare. just keap heart scales and TMs around.
source: experience