Hello there Amol,
Hope you're doing well.
As per my understanding, you are asking this because it could be a question of the Associate Reactive Web Developer Exam.
The answer is no. You cannot use a Server Action with the Function property set to Yes as a direct expression in the screen (for a Reactive Web / Mobile application).
There are indeed some workarounds like calling this Server Action inside a Data Action and associate the output to a screen variable. But it's just a workaround in order to achieve a similar behavior.
The answer that you are looking for is: No (for a Reactive Web/Mobile App).
For a Traditional Web App, then the answer would be Yes.
Hope that this helps you!
Kind regards,
Rui Barradas