Hello @ilyes.kezai and welcome to the forum…
yes its possible, could you show what you have tried so far ? and we can try help from there…
but one option is intersect your component and use familyinstance by geometry for create a void and then use cutgeometry…
Take a look here. How to get help on the Dynamo forums