Yes Katie, The Right of Permanent Resident Fee is fully refundable if your application is denied. Any other fees you may have paid, like the application fees, are NOT refundable.
Please see:
From: http://www.cic.gc.ca/english/resources/tools/fees/refunds/rprf.asp