That is a good idea. I am not sure if it would or not, but it is certainly worth a shot! I know severe temperature changes either way will kill any eggs, I just don't know if a freezer will get cold enough.
I was lucky when I had my infestation of drain flies - I was treating a mammal's bedding so I could use boric acid without any concern, and the problem was solved.