Yes, you can import all your media files from wordpress.com to wordpress.org. The quality will not decrease. As per step 1, you should opt for the “All content” option to export everything including media. The file size and quality will not change.