No. The company cannot do so. It is violation of human rights under the Constitution. No offer letter or contract can supersede the Indian Law.
There are several Supreme Court judgments that prohibits drug test or narco test on individuals. However, DNA would require permission of the court or investigation by police in any matter; not otherwise.
thanks,