Yes, it is certainly possible. You just need to set $CFG->wwwroot (in config.php) = "http(s)://example.com/learn" (setting to http or https as appropriate).
Installing and upgrading help
Moodle base URL not on root and not on a subdomain
This discussion has been locked so you can no longer reply to it.