Yes of course... here’s a recipe for baked beans..
1 tbsp of oil
1/2 onion, finely diced
2 garlic cloves, minced
1 tbsp of tomato purée
1/2 tsp smoked paprika
1/4 tsp dried thyme
1 tbsp of brown sugar
1 tbsp of soy sauce
400g of tinned cannellini beans, drained (240g when drained)
100g of passata
black pepper
Hope this helps