If I only eat two times a day, will I still be able to lose weight?

Yes. The most important thing is how many calories you eat, not how often you eat. However, there is a tendency to snack and eat excessively when meals are skipped. You will typically be more successful having planned small meals and snacks that are low in calories, high in fiber, rather than skipping meals.