You can do some data-oriented research at home, though you’d also have a lot of reading to do first.
Medicine requires seeing patients and their ailments and their recovery - not something we’ll ever be able to simulate well (for many reasons).
You can get a good medical education all online, but nobody will accept you’re not having seen patients