Technically you could, but it's a very bad idea.
The two fluids are incompatible and will contaminate each other, forcing you to re-bleed sooner than expected.
Whichever solvent you use to clean out the hose of mineral oil, will also be a contaminant for your dot fluid. In addition, you'll need some serious dedication and resolve to make sure you actually clean it out completely.
Labour + more dot fluid > Cost of length of hose.