"Yes. Finite products of discrete spaces are again discrete. Both X and Y have as a base the singleton sets, and the product topology on X×Y will have as a base, the product of singleton sets, meaning every point is open and closed, and hence the topology on X×Y is discrete.
An infinite product of discrete spaces need not be discrete however."