Question about allow_failure is just one line of the scripts

I have a job in .gitlab-ci.yml , it has a several script lines, the pipeline will fail if each line of script is failing, what I need is I don’t want my job fails if one specific line fails, I can’t use allow_failure: true because if will work for all lines :*

Job1:
    stage: test
    script:
       - first script ( I want use allow_failure: true just for this line)
       - second script (I want job fails if this line is failed allow_failure: false)

Is it possible?

Job1:
stage: test
script:
- first script || true
- second script (I want job fails if this line is failed allow_failure: false)