Yes, you can. You can take the JR Line ferry from Miyajimaguchi with the JR Pass for free. The same applies to the JR train between Hiroshima and Miyajimaguchi.