Yes, you can attach DSLR cameras to microscopes. This can be done by using a microscope adapter, which is a specialized type of lens adapter. Microscope adapters allow you to connect your DSLR camera to the eyepiece of the microscope, so that you can take photographs through the microscope.