Testing Suricata within same VM

Greetings,

I am new to Suricata and networks. I have a question,

I have a VM and I installed Suricata 7.0.0 there. I was wondering if I can test my custom rules by using the same VM where suricata is installed by sending test packets using scapy? Will it be possible or I should create a separate VM to send test packets to my Suricata VM? Thanks