Is it leagal to remove running boards on a 1998 ford explorer?

Since running boards were an option that replaces the rocker moulding

I would say YES