Yes, if your package is dependant on the jags system dependency you will need to install it in your workflow.
Add something like the following to your steps in .github/workflows/R-CMD-check.yaml
- name: Install system dependencies
run: brew install jags