Yes. Docker containers are run in their own filesystem abstraction; they don’t (for deliberate security reasons) see the rest of the contents of your hard drive.
You can use bind mounts or volumes to ‘share’ resources from the host into the container; volumes are the generally preferred way.