Yes, you can search in a specific directory by replacing the . with the path to that directory. For example:
find /path/to/directory -name "*.txt"
Replace /path/to/directory with the actual path where you want to search. This command will list all .txt files in the specified directory and its subdirectories. If you have any more questions, feel free to ask!
