I would like to run an action after an object is created or updated, do I need to implement both functions?
yes. In general you can use a pattern like:
// your logic here
In case i was not clear:
Yes - you need to implement both functions
No - both functions are not called