Hello Sofie, yes, it is possible, using ape and adegenet packages. You can read your DNA alignments using ape's read.dna, and then extract SNPs from the alignments to create a genind object using DNAbin2genind.