yes,
You can easily consume rest api in mendix using the rest action (inside a microflow).
You can also create your own API in mendix using the published rest service :