It can be done wit triggers, however I suggest that a better way is to use the Internal - Job/Task. At the end of job A, jo add this task that calls job B
Alternatively you can use flows. In job A, go to the flows task, and add an OnComplete flow that calls job B.
I like the first one the best. Sometimes you want to run a job manually. Say you only want to only run job A for some reason. If you use triggers or flows, job B will run automatically when job A is done, and it is easy to forget this when the logic is 'hidden'. If you use the first solution, the last task is visible and you can inactivate it if you need to.