Only if you aren't properly grounded or you haven't unplugged/turned off the PSU so the computer still has power.
If you are properly grounded and the computer's power is disconnected there is minimal risk from handling any components including ram. In fact, reseating ram is often suggested as a solution to ram issues.