Adding a program to anchor project

Hi, I want to add a program to the programs folder in order to have multiple modules for a single project.

  1. Is this correct?
  2. How should I do it?
Mainproject: -> programs
programs: main, second, third

I want to put the second module’s code in its own folder and so on.

use below commands

  1. init
anchor init main
  1. add
anchor new second

and you should add pubkey to [programs.localnet] in anchor.toml