Yes, some attacks are instakill, but the yellow warning sign signals what tiles are not safe, so that's key to surviving the attack.
I guess you're referring to the second boss, the ghost? Just pay attention to where the warning sign is and get away from that area