Yes, you can apply for the CSS exams while working in a government job. The Federal Public Service Commission (FPSC) does not have any restrictions on who can apply for the CSS exams. However, you must have a Bachelor's degree in order to be eligible to apply.
There are a few things to keep in mind if you are planning to apply for the CSS exams while working in a government job. First, you will need to make sure that you have enough time to study for the exams. The CSS exams are a very competitive exam, and you will need to be well-prepared in order to be successful.