Well, as usual: It depends.
When the pin is configured as "no hardware connection" a simple write to the pin will set the output state.
When the pin's drive mode is defined as open drain drives low (initial state high) you can use a pull up resistor
When the pin's drive mode is "resistive pull up" you ar using an internal resistor.
When you tell a bit more (schematic, project archive) what you need, we could provide a bit more help.