In general, yes, points gained on answers that get deleted because the question gets deleted are lost. Following an undeletion the points are restored.
However, if your post satisfies both of:
has score at least three
was visible1 on the site for at least 60 days prior to deletion
then you get to keep the points.
See this blog post by Josh Heyer, aka ...