Should I use an if-then automation to lock my vehicle?

Use the lock.lock service call.

then:
  - service: lock.lock
    target:
      entity_id: lock.fordpass_doorlock