If you mean "soil I dug up from a pond", then that's a positively, absolutely, bad idea, do not use that!
Soil from the environment can house nasty pathogens and parasites.
If, as I suspect, you mean something like Wal-mart's Aquatic Planting media soil, then the short, but incomplete answer is yes, but...
The first issue is why do you want to use that specifically and have you had a planted tank before? I wouldn't recommend it for your first planted tank. There are "dirted" tanks, but they have some significant issues if not done correctly. I have multiple planted tanks and all have plain old play sand except for one that has ecocomplete. I could mess around with the dirt, but the way I re-scape on occasion and my fish dig around, it would be way too messy.
If you still want to use the aquatic planting soil, please take some time to read up on using dirt as a substrate. It really is not as simple as switching out the gravel for dirt!