Yes you can wash your hair when your first get dreadlocks if you want too.
When you do wash your hair when you first get the dreads you may experience some loose hair which is normal.
It's also advisable to wear a dreadlocks washing cap to protect your dreads while you shower for the first month or so due to the loose hair that can occur when washing dreadlocks.