Importing from a legacy forum

Yes, see

https://github.com/discourse/discourse/tree/master/script/import_scripts