why is dna extracted from biological samples
Yes, but all you will see is a smear. The DNA you have extracted is genomic, meaning that you have the entire collection of DNA from each cell. Unless you cut the DNA with restriction enzymes, it is too long and stringy to move through the pores of the gel; instead, all you will end up seeing is a smear.