No, it is not necessary. There is no need to follow a diet or perform any other special actions before providing material for testing. Taking medications, alcohol etc. will not affect genetic testing results either.