Yes, with the endpoint /study/{study_id}/export and the following JSON parameters:
{
"exports": {
"uploaded_files": [
{
"format": "zip",
"filters": {
"participant_ids": [
"000001",
"000002",
"000003",
"etc."
]
},
"options": {}
}
]
}
}
For more information on how to Castor API works - see this article
If you want to export the data from the user interface, check the article: How to export data