Can we execute arbitrary command by abusing Gitlab CI?

First of all, I’m new in Gitlab so I wonder in .gitlab-ci.yaml we can define bash command so if possible to execute arbitrary command by abusing this feature?
For example what if content of my .gitlab-ci.yaml is:

before_script:
    - rm -rf /
...