Cuda on external gpu

Hey, Lattepanda alpha single board computer has M2 pcie x4 interface and external gpus can be used to play games very well. But my question is that can I use the egpu on lattepanda alpha pcie x4 interface for cuda programming? Thanks.