Yup. Take it apart and make sure it looks squared away.
If it's actually brand new you won't have to "clean" it. Make sure there's no visible dirt/crud, make sure it appears to have been oiled (and oil it if it hasn't been), and run a bore snake through the barrel.
After you shoot it, repeat the process, only actually clean and lube it (you'll already be an expert as disassembly/reassembly).
Get a basic cleaning kit (you'll accumulate more as you get more guns), snake, cleaning solution, and oil,
https://www.amazon.com/Hoppes-Legend-Cleaning-Caliber-Rifle/dp/B000CPKAUS/ref=sr_1_45?crid=2XRAHJQI5H1II&dchild=1&keywords=223+cleaning+kit+with+oil+and+cleaner&qid=1604962996&sprefix=.223+cleaning+ki%2Caps%2C274&sr=8-45
https://www.amazon.com/Ultimate-Rifle-Build-Cleaner-22-223/dp/B017VJOYJU/ref=sr_1_25?dchild=1&hvadid=78683851854143&hvbmt=be&hvdev=c&hvqmt=e&keywords=ar+cleaning+kit&qid=1604962493&sr=8-25&tag=mh0b-20
There are a bazillion videos on disassembly/cleaning, so just watch a few and you'll see common themes: