Clarification on the Difference Between Two Ways of Calling a Function in JavaScript

I am a little confused about the way function is called in these cases

onPress(() => myFunction())
And
onPress(myFunction)
Is it the same thing but the 2nd one is a shortened version of the first one?