The first thing is that you need to ask this question yourself.
Second, how do we know about this opportunity that you have been offered by a company until you share your qualifications, experience, and company details? Think about it, and if you would like, please share and enable us to respond appropriately.
However, one thing I certainly would like to say is that you must understand the demands of your career and related opportunities yourself first because you are the one who knows about your career goals, targets, and achievements so far.
If you are a beginner and do not have much experience (less than 1 year), you need to focus on your learning. What a beginner needs to do at this stage of their career is to learn as much as possible. Learning is important to set a good base that helps to move forward in a career in the right way, and that requires stability too, which means a good and continuous working period. The more you learn, the more experience you will gain and the better understanding of your functions, which will boost your confidence and give you more good opportunities in your career.