Proverbs are often written without any surrounding context and in two lines of text. Each line will have a certain relationship to the other line. (See: [[rc://en/ta/man/jit/figs-parallelism]])
Occasionally the author addresses a proverb to "my son." This is not intended to restrict the words of that proverb to only males, but is still given in the context of a father warning his son.