Yes, this would be considered an indirect rollover. Make sure you tell the Roth IRA custodian in advance what you are doing, so they don't code the money as a regular contribution.
At tax time, you will get a 1099-R from the 401k custodian. Turbotax will ask what you did with the funds. You will indicate you rolled them over to a Roth IRA within 60 days. If this was a pre-tax 401k, the rollover is also considered a conversion and will be taxable.
Over the next months, the IRS computers will be checking to see that your Roth IRA reports a rollover contribution matching the 401k withdrawal. As long as they see that, there won't be any problems.
If any portion of the distribution from the 401(k) was in cash and taxes were withheld, you'll need to substitute other funds to be able to complete the rollover of the entire gross amount. Line 5b of your 2023 Form 1040 will show the ROLLOVER notation to indicate that the distribution was rolled over.