Transfer between departments is possible but not automatic — it usually happens through deputation or by applying to another post through the proper channel.
Deputation lets you work in another department for a fixed period while keeping your parent cadre.
Inter-departmental or mutual transfers depend on the rules of both departments and available vacancies.
You normally need a no-objection certificate from your current department.
Read the deputation or transfer rules in your service rulebook before applying.