NO, you can’t use home carpet in a marine environment.  The backings are usually natural jute, which would break down and mold.  And the carpet fibers are usually not made to resist mold, mildew or fading like marine grade carpet would. Indoor carpet would break down and decay quickly in a marine setting.