How to get all NFTs in a particular smart contract

I’m trying to get all the NFT’s in a particular contract, is this code all i need ?

const userEthNFTs = await Moralis.Web3.getNFTs();

Not sure if you want this https://docs.moralis.io/moralis-server/web3-sdk/account#getnfts
or https://docs.moralis.io/moralis-server/web3-sdk/account#getnftsforcontract or something else.