NOC points ( Express Entry)

Hello everyone,
I have a query regarding points claimed from work experience. I have 2.5 years of experience in occupation-A (NOC B) (2233) and 1-year experience in Occupation-B (NOC A) (2141) . can I claim full 3 year worth of points? or do I need to have experience in a similar noc code to claim all the points?

Your answers will be greatly appreciated.

Thank you.