Sure! No problem. :-) You can easily mount the spool holder on the wall as long as you still can pull the filament and feel little or no resistance.
Remember that by lubricating the filament with oil will considerably reduce friction inside the guide tube.
If you lead the filament from the spool naked without guide tube, then there is no distance limit.