This is entirely dependent on the venue's style. It varies not only by field, but also by the particular journal or conference.
Ideally, your venue will have a published style guide.
Or at least a short document with explicit instructions.
Sometimes this will be in the citation style guide, other times you will need to look in the full guide.
Failing that, go digging through other papers published at same venue,
and see what they do.
Failing that, or if this isn't actually targeted at a standard venue (eg for a standalone book). Find a style guide, for your field. Either one used generally used in your field Eg the Chicago Manual of Style. Or choose on from a journal that you like.