Help to understanding how timers work

So, if task 1 is running and for example: in the middle of its execution, the time of a timer with a higher priority has come, the task will not be interrupted, it will finish executing the one ms allocated to it and the next task will be a timer task, and only then other tasks with a lower priority?