I am trying to understand hypothesis testing
I'll leave aside meta-commentary about whether hypothesis tests are a good idea or whether the specific example question you supplied is a good candidate for a question about hypothesis testing and respond to the direct question here. That's not to imply I necessarily disagree with the comments, I simply choose in this case to stick to what I see as the framing of the question.
Glossing over some details, the Neyman-Pearson approach is effectively choose some probabilistic model, choose a test statistic, set a significance level, determine a rejection region from those, then examine whether the test statistic calculated on the sample falls into the rejection region. For simple cases, you can conventionally define the critical value as the least extreme value in the rejection region.
There's an equivalence between the Neyman-Pearson approach and use of p values: If all the steps are done correctly, adopting the rejection rule "reject if $p\leq\alpha$" is entirely equivalent in the sense that the two tests should always reject the same cases and not reject the same cases. That is, for any given sample, you should make the same decision in relation to the hypothesis being tested.
It's also entirely reasonable to do this (use a p-value to make the decision) within a Neyman-Pearson paradigm. One can simply define the p-value itself ― which is simply a transformation of the first test statistic ― as the test statistic of interest and literally everything behaves as it should, entirely inside the paradigm. It's not some weird Frankenstein methodology, it's simply a transformation of a test statistic, no weirder than moving from using say $T$ to $|T|$ as a test statistic when performing a two sided t-test.
does it necessarily mean that we have to [...] finding critical value and then looking at the table
As I lay out above, it's already what you're doing when you use a p-value. (But please do it with "open eyes", not blindly; understand what the attainable significance levels are, understand the properties of any approximations being used and so on.)
If define that your test statistic is the p-value, then your critical value can simply be chosen from among available $\alpha$ values, the labour having been undertaken in the step of transformation between initial test statistic and p-value.
[Ggjj's point in comments about permutation tests etc has some relevance here. If you're used to using them the distinction seems pointless]
If both the original test statistic and this transformed one are treated in the same way, then the decisions should be identical in every case (i.e. the tests should be equivalent).
However, if your question about what you have to do relates to what you're expected to do within a subject you're being taught, we cannot address that.
I have been taught to solve this question by finding the critical value and then looking at the table but what I want to do is to use the p-value and then looking at normal-distribution table to state the hypothesis if its accepted or rejected.
If you do it both ways, what happens?
Indeed, try it on dozens of different examples.
If you can find a case that differs, figure out exactly why; that will enlighten you about something you're doing (arguably wrongly).