Should I be worried if my child of age 18 months has had diarrhea for the past 4 days?

Yes. Children at this age can become dehydrated very quickly. Encourage fluids and see your pediatrician to evaluate for infectious agents or other problems.