Probably, but hard to be sure without seeing what you have. Or getting accurate inside and outside measurements. Different manufacturers use different kinds of hoses, and different toilets could have different size inlet fittings. You didn't mention either the RV make or the toilet brand.
Can you just take the hose to a hardware or plumbing supply store and match it up?
Former owner of 2004 American Tradition and several other RVs
Home is in the Ocala Nat'l Forest near Ocala, FL
Summers in Black Mountain, NC