Of course you can.
It's not very complicated. You can easily find information about this on the Internet.
But I have a question, why do you want to create distilled water yourself?
You can easily buy it, for example, at a supermarket or gas station.
Alternatively, go to the pharmacy, but they probably have expensive distilled water, so it's not worth it.