Is the Task Difficulty from an event a secret for GM ?

So like the GM says:

 - You attack the XXX, roll a D20 and I'll tell you if you hit ?
 - The target number to attack the XXX is 3, please roll a D20.