Can you play D&D 5E online solo?

I’m new to D&D and not played before. I don’t have friends who play the game and am wanting a way to start off on my own to learn the basics.

Does anybody know of any way to play online solo?

Thank you in advance!