YES! Degrees obtained through the online or the open and distance learning (ODL) mode are completely valid if you are applying for government jobs.