Squash and Cucumbers are in the same plant family but are different species so it's okay to plant cucumbers and squash beside each other.
Just leave enough spacing between them to allow the squash and cucumbers to grow out and spread so they won't choke each other out.
As long as you plant them with enough space and room to grow then planting the squash and cucumbers beside each other will be okay.