Yes, you can.
Ovulation tests are more accurate if your cycle is regular, but they can still work if your periods are irregular - it just means that you’ll have to test more frequently.
Most women will only need to test once a month, but if your periods are irregular, you should start testing a few days after your period and then move on to once per week.