Yes! I think the only thing you may need to change is that any placeholder=VALUE arguments inside the parentheses of .format() need to go after all the positional arguments (i.e. those without “=”).
The positional arguments will replace placeholders {0}, {1}, etc., and the named ones will replace the corresponding name.