Yes, your son needs attention for his issues.
A 2 year old child is always at risk for gastroenteritis (loose motion and vomiting) as they keep putting objects in their mouth regularly.
Next Steps
check for fever spikes with a thermometer
if he starts getting irritable/drowsy/reduced urine output - immediately take him to a hospital
start ORS - about 100 ml for every time he has loose stools or vomiting
syrup emeset - 2mg/5ml - 2.5 ml twice a day for 3 days
Health Tips
if things are worsening or not improving over the next 2 days, better to be seen by a pediatrician at the hospital