Forum:Book of moon + needle worm question

if i had a face down needle worm on the field and a face down book of moon on the field. if my opponent attacks and flips my needle worm up (activating its effect) if i was to activate book of moon and chain it onto my needle worms effect would it be flipped back face down only to be flipped up by the attack again causing my opponent to loose 10 cards from the top of their deck instead of 5