It’s rather obvious that the classic fantasy wizard trope isn’t realistic, but YES, if done properly, a wizard can be realistic, especially in a story reflecting the Early Middle Ages, a time also known as the Dark Ages, during and after the steady decline of the Roman Empire. How so?
The Medieverse: Tim's Realistic "medieval" FANTASY Blog
Debunking medieval myths and misconceptions in fantasy to learn more about the real Middle Ages.